﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Heightmap_Editor.Menu.Screens
{
    class Settings : MenuScreen
    {
        MenuSpinner _pencil = new MenuSpinner("Pencil Size: ", (int)HeightmapEditor.Instance.SelectorScale);

        public Settings()
            : base("Settings")
        {
            MenuEntries.Add(_pencil);
        }

        protected override void OnCancel(PlayerIndex playerIndex)
        {
            HeightmapEditor.Instance.SelectorScale = _pencil.Selection;

            base.OnCancel(playerIndex);
        }
    }
}
